﻿using System;

namespace VIT.Web.Modules.PartnersByCat
{
    public partial class PartnersByCat : VIT.Web.UI.VITModule
    {
        public string Cat;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //ArticlesProvider fnp = new ArticlesProvider();
                //fnp.LanguageId = Session["language"].ToString();
                //rpt.DataSource = fnp.loadTop(Params);
                //rpt.DataBind();
                Cat = Params["Category"];
            }
        }

        protected void Pager_PreRender(object sender, EventArgs e)
        {
            ArticlesProvider fnp = new ArticlesProvider();
            fnp.LanguageId = Session["language"].ToString();
            ListView.DataSource = fnp.loadTop(Params);
            ListView.DataBind();
        }
    }
}